import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.0
import QtQuick.Dialogs 1.0
import QtQuick.XmlListModel 2.0


Rectangle {
    id: rectanglePageCharacterClasses

    color: "black"

    property int editIndex: 0
    property int levelIndex: 0
    property int splitOffset: 220

    onEditIndexChanged: {
        levelIndex = 0;
    }


    ComponentSplitter {
        id: rightSplitter
        x: parent.width - 160
        maximumDrag:  parent.width - 140
    }

    ComponentSplitter {
        id: leftSplitter
        x: rightSplitter.x - splitOffset
        maximumDrag: rightSplitter.x - 160

        onXChanged: { splitOffset = rightSplitter.x - x; }
    }

    PaneCharacterClass {
        anchors.top: parent.top
        anchors.right: leftSplitter.left
        anchors.bottom: parent.bottom
        anchors.left: parent.left
    }

    PaneCharacterEdit {
        anchors.top: parent.top
        anchors.right: rightSplitter.left
        anchors.bottom: parent.bottom
        anchors.left: leftSplitter.right
    } // paneSkillEdit

    PaneClassSkills {
        anchors.top: parent.top
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        anchors.left: rightSplitter.right
    }

}
